package com.sugar.real.estate.module.business.dal.dataobject.infohouse;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sugar.real.estate.framework.mybatis.core.dataobject.BaseDO;
import lombok.*;

/**
 * 资讯与房屋关联信息 DO
 *
 * @author Ysugar
 */
@TableName("business_info_house")
@KeySequence("business_info_house_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class InfoHouseDO extends BaseDO {

    /**
     * 资讯分类ID
     */
    @TableId
    private Long id;
    /**
     * 资讯ID
     */
    private Long infoId;
    /**
     * 房屋ID
     */
    private Long houseId;
    /**
     * 房屋类型（0公寓 1现房）
     */
    private Boolean type;
}